package com.prj.dy.datamgr.undo
{
	import com.prj.dy.common.DYEvent;
	
	import flash.events.EventDispatcher;
	
	public class DYXmlDataChangeEvent extends DYEvent
	{
		
		private static const XDCE:String								= "XmlDataChangeEvent";
		public static const XML_DATA_ELEM_CHANGE:String				= XDCE + "XmlDataElemChange";
		
		
		public function DYXmlDataChangeEvent(from:EventDispatcher, xmlOrg:XML, xmlNew:XML, property:String, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			this.orgXml = xmlOrg;
			this.newXml = xmlNew;
			this.propertyName = property;
			
			super(from, XML_DATA_ELEM_CHANGE, null, bubbles, cancelable);
		}
		
		private var _orgXml:XML = null;

		public function get orgXml():XML
		{
			return _orgXml;
		}

		public function set orgXml(value:XML):void
		{
			_orgXml = value;
		}

		
		private var _newXml:XML = null;

		public function get newXml():XML
		{
			return _newXml;
		}

		public function set newXml(value:XML):void
		{
			_newXml = value;
		}
		
		private var _propertyName:String = null;

		public function get propertyName():String
		{
			return _propertyName;
		}

		public function set propertyName(value:String):void
		{
			_propertyName = value;
		}
		
		
	}
}